"""
Handle request to change password
for remote system user.
"""
from pspy.der import PspyAction

class ReqTest(PspyAction):
    
    def execute(self):
        """
        present the index page 
        """
        req = self.request
        params = [ "host IP: " + str(req.getHost().host),
                   "hname: " + str(req.getHostName()),
                   "client IP: " + str(req.getClientIP())
                 ]
        
        for hdr in req.getHeaders():
            params.append("%s=%s" % (hdr, req.getHeader(hdr)))
            
        req.setAttribute("params", params)
        req.setResponsePage("/debugger.kid")

        return req.getResponse()
    
